From: Arjan Molenaar Date: Thu, 10 Nov 2022 21:20:07 +0000 (+0100) Subject: Update Common Questions section on tree views X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~103^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=29d7f93e381887844fafaa9ce7f3824237c18ffd;p=gtk4.git Update Common Questions section on tree views Point users to GtkListView instead of the deprecated GtkTreeView. --- diff --git a/docs/reference/gtk/question_index.md b/docs/reference/gtk/question_index.md index 13ab0ac3e2..aa0cbafff2 100644 --- a/docs/reference/gtk/question_index.md +++ b/docs/reference/gtk/question_index.md @@ -311,9 +311,11 @@ the question you have, this list is a good place to start. and the required formatting flexibility. If you want to display a large amount of data in a uniform way, your best - option is a [class@Gtk.TreeView] widget. See the [tree widget overview](#TreeWidget). - A list is just a tree with no branches, so the treeview widget is used for - lists as well. + option is a [class@Gtk.ListView] widget. The list view can have different + types of models: [class@Gtk.TreeListModel] can serve as a model for a tree + structure, while a simple [iface@Gio.ListModel] can be used for simple lists. + The section [List Widget Overview](section-list-widget.html) helps you get started. + It replaces [class@Gtk.TreeView], which has been deprecated since GTK 4.10. If you want to display a small amount of items, but need flexible formatting and widgetry inside the list, then you probably want to use a [class@Gtk.ListBox],